import Layout from '@/views/layout/Layout';

const _import = require('@/router/_import_' + process.env.NODE_ENV);

export default [{
  path: '/sale',
  component: Layout,
  name: '销售管理',
  icon: 'setting',
  authority: 'sale',
  children: [{
    path: 'customer',
    icon: 'fa-user',
    component: _import('sale/customer/index'),
    name: '客户管理',
    authority: 'saleCustomer'
  }, {
    path: 'customer/add',
    icon: 'fa-user',
    component: _import('sale/customer/add'),
    name: '新增客户',
    authority: 'saleCustomer:btn_add'
  }, {
    path: 'customer/edit',
    icon: 'fa-user',
    component: _import('sale/customer/edit'),
    name: '编辑客户',
    authority: 'saleCustomer:btn_edit'
  }, {
    path: 'customer/detail',
    icon: 'fa-user',
    component: _import('sale/customer/detail'),
    name: '查看客户详情',
    authority: 'saleCustomer:btn_detail'
  }, {
    path: 'condition',
    icon: 'fa-user',
    component: _import('sale/condition/index'),
    name: '客户合作条款',
    authority: 'saleCondition'
  }, {
    path: 'model',
    icon: 'fa-user',
    component: _import('sale/model/index'),
    name: '客户货号档案管理',
    authority: 'saleModel'
  }, {
    path: 'model/add',
    icon: 'fa-user',
    component: _import('sale/model/add'),
    name: '新增客户货号档案',
    authority: 'saleModel:btn_add'
  }, {
    path: 'model/edit',
    icon: 'fa-user',
    component: _import('sale/model/edit'),
    name: '编辑客户货号档案',
    authority: 'saleModel:btn_edit'
  }, {
    path: 'model/detail',
    icon: 'fa-user',
    component: _import('sale/model/detail'),
    name: '客户货号档案详情',
    authority: 'saleModel:btn_detail'
  }, {
    path: 'model/Filepgf',
    icon: 'fa-user',
    component: _import('sale/model/Filepgf'),
    name: '客户货号PGF文档',
    authority: 'saleModel:btn_Filepgf'
  }, {
    path: 'pcc',
    icon: 'fa-user',
    component: _import('sale/pcc/index'),
    name: '产品列表',
    authority: 'salePcc'
  }, {
    path: 'pcc/detail',
    icon: 'fa-user',
    component: _import('sale/pcc/editPcc'),
    name: '编辑货号PCC',
    authority: 'salePccModel:btn_detail'
  }, {
    path: 'price',
    icon: 'fa-user',
    component: _import('sale/price/index'),
    name: '报价管理',
    authority: 'salePrice'
  }, {
    path: 'price/add',
    icon: 'fa-user',
    component: _import('sale/price/addPrice'),
    name: '新增报价单',
    authority: 'salePrice:btn_add'
  }, {
    path: 'price/edit',
    icon: 'fa-user',
    component: _import('sale/price/edit'),
    name: '编辑报价单',
    authority: 'salePrice:btn_edit'
  },  {
    path: 'price/detail',
    icon: 'fa-user',
    component: _import('sale/price/detail'),
    name: '查看报价单',
    authority: 'salePrice:btn_edit'
  },{
    path: 'order',
    icon: 'fa-user',
    component: _import('sale/order/index'),
    name: '订单管理',
    authority: 'saleOrder'
  }, {
    path: 'report',
    icon: 'fa-user',
    component: _import('sale/report/index'),
    name: '销售报表',
    authority: 'saleReport'
  }, {
    path: 'condition',
    icon: 'fa-user',
    component: _import('sale/condition/index'),
    name: '售价参数管理',
    authority: 'saleCondition'
  }, {
    path: 'config',
    icon: 'fa-user',
    component: _import('sale/config/index'),
    name: '销售配置管理',
    authority: 'saleConfig'
  }, {
    path: 'researchConfig',
    icon: 'fa-user',
    component: _import('sale/research/index'),
    name: '研发调整产品列表',
    authority: 'researchConfig'
  },{
    path: 'researchConfig/edit',
    icon: 'fa-user',
    component: _import('sale/research/edit'),
    name: '研发调整产品配置编辑',
    authority: 'researchConfig:btn_edit'
  },{
    path: 'researchConfig/detail',
    icon: 'fa-user',
    component: _import('sale/research/detail'),
    name: '研发调整产品配置查看',
    authority: 'researchConfig:btn_edit'
  },{
    path: 'estimatePrice',
    icon: 'fa-user',
    component: _import('sale/priceAdjust/index'),
    name: '采购料件估价',
    authority: 'estimatePrice'
  },{
    path: 'estimatePrice/edit',
    icon: 'fa-user',
    component: _import('sale/priceAdjust/edit'),
    name: '采购料件估价编辑',
    authority: 'estimatePrice:btn_edit'
  },{
    path: 'estimatePrice/detail',
    icon: 'fa-user',
    component: _import('sale/priceAdjust/detail'),
    name: '采购料件估价查看',
    authority: 'estimatePrice:btn_edit'
  }]
}]
